﻿import os 
with open('README.md', mode='w',encoding='UTF-8') as f:
    line = '# WallPaper\n\n#### 介绍\nBeautiful wallpapers for anime style.\n'
    f.write(line)
    for root,dirs,files in os.walk('./anime'):
        for file in files:
            line = '\n#### '
            line += file.split('.')[0] + '\n'
            line += '![{}](./anime/{})\n'.format(file.split('.')[0], file)
            f.write(line)
os.system('g.sh')

        